/*
 * base_process_handler.h
 *
 *  Created on: 2014. 3. 27.
 *      Author: wooyoung
 */

#ifndef BASE_PROCESS_HANDLER_H_
#define BASE_PROCESS_HANDLER_H_

#include <stdio.h>
#include <unistd.h>
#include <assert.h>

class BaseProcessHandler
{
public:
	BaseProcessHandler();
	virtual ~BaseProcessHandler();

	virtual void DoWork() = 0;
protected:
	int process_id_;
private:
	BaseProcessHandler(BaseProcessHandler const& copy);//forbidden using copy constructor
	BaseProcessHandler& operator=(BaseProcessHandler const& copy);//forbidden using equal operator

	virtual int ManageProcess(int process_index) = 0;
};

#endif /* BASE_PROCESS_HANDLER_H_ */
